<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
    <title>编辑文章</title>
    <base href="<?php echo base_url();?>">
    <link rel="stylesheet" href="./style/admin/css/public.css" />
    <script type="text/javascript" src="./style/admin/js/jquery-1.7.2.min.js"></script>
    <style type="text/css">
        .error{
            color: red;
        }
    </style>
</head>
<body>
<form action="./admin/article/edit_article_doing.html" method="post" enctype="multipart/form-data">
    <table class="table">
        <tr class="th"><td colspan="10" align="center">编辑文章</td></tr>
        <tr>
            <td class="td">标题</td>
            <td>
                <input type="text" name="title" value="<?php echo set_value('title');?>">
                <?php echo form_error('title', '<span class="error">', '</span>');?>
            </td>
        </tr>
        <tr>
            <td>类型</td>
            <td>
                <input type="radio" name="type" value="0" checked="checked" <?php echo set_radio('type', '0');?>>普通
                <input type="radio" name="type" value="1"/ <?php echo set_radio('type', '1');?>>热门
                <?php echo form_error('type', '<span class="error">', '</span>'); ?>
            </td>
        </tr>
        <tr>
            <td>
                栏目
            </td>
            <td>
                <select name="cid" id="">
                    <option value="0" <?php echo set_select('cid', '0');?>>情感</option>
                    <option value="1" selected="selected"  <?php echo set_select('cid', '1');?>>生活</option>
                </select>
                <?php echo form_error('cid', '<span class="error">', '</span>');?>
            </td>
        </tr>
        <tr>
            <td>缩略图</td>
            <td><input type="file"></td>
        </tr>
        <tr>
            <td>摘要</td>
            <td><textarea name="info" id="" class="textarea_comment" placeholder="文章摘要..."> <?php echo set_value('info');?></textarea>
            <?php echo form_error('info', '<span class="error">', '</span>');?>
            </td>
        </tr>
        <tr>
            <td>内容</td>
            <td>
                <textarea  name="content" id="" class="textarea" placeholder="文章内容..." style="width:100%"><?php echo set_value('content');?></textarea>
                <?php echo form_error('content', '<span class="error">', '</span>');?>
            </td>
        </tr>
        <tr>
            <td colspan="10" align="center"><button type="submit" class="input_button">发布</button></td>
        </tr>
    </table>
</form>
</body>
</html>